const state = {
    user: null,
    token: null
};

const mutations = {
    SET_USER(state, user) {
        state.user = user;
    },
    SET_TOKEN(state, token) {
        state.token = token;
    },
    CLEAR_USER_DATA(state) {
        state.user = null;
        state.token = null;
    }
};

const actions = {
    // 如果需要，也可以在这里封装逻辑
};

export default {
    namespaced: true,
    state,
    mutations,
    actions
};
